import CONSTANT from '@/common/constants.js';
import http from '@/common/http.js';

export default {
  name: 'personalInformation',
  components: {},
  data () {
    return {
      siteId: '',
      studentId: '',
      content: ''
    }
  },
  mounted () {
    var _this = this
    _this.siteId = window.sessionStorage.getItem('siteId')
    _this.studentId = window.sessionStorage.getItem('studentId')
    console.log(_this.siteId, _this.studentId)
    http.post(CONSTANT.STUDENTVIEW, {
      siteId: _this.siteId,
      studentId: _this.studentId
    }, (res) => {
      console.log(res)
      _this.content = res
    })
  },
  methods: {
    goRevise () {
      this.$router.push({path: '/modifyInformation'})
    },
    comeBack () {
      window.history.go(-1)
    }
  }
}
